package com.cy.demo1.service;

import com.cy.demo1.entity.Address;
import org.springframework.transaction.jta.UserTransactionAdapter;

import java.util.List;

/*收货地址业务层接口*/
public interface IAddressService  {
    void addNewAddress(Integer uid ,String username , Address address);

    List<Address> getByUid(Integer uid);

    void setDefault(Integer aid,Integer uid,String username);

    /**
     * 删除用户选中的收货地址数据
     * @param aid 收货地址id
     * @param uid 用户id
     * @param username 用户名
     */
    void  delete (Integer aid,Integer uid , String username);

}
